package com.sktlab.bizconfmobile.model.db;

import com.sktlab.bizconfmobile.model.Meeting;

import android.content.ContentValues;

public class MeetingDBAdapter extends ObjectDBAdapter {
	
	public MeetingDBAdapter(String paramString, String[] paramArrayOfString) {
		
		super(paramString, paramArrayOfString);
	}

	protected ContentValues createContentValues(Object paramObject) {
		
		ContentValues localContentValues = new ContentValues();
		
		if ((paramObject instanceof Meeting)) {
			
			Meeting localMeeting = (Meeting) paramObject;
			
			localContentValues.put(MeetingDbTable.KEY_ACCOUNT_ID, localMeeting.getAccountId());
			localContentValues.put(MeetingDbTable.KEY_TITLE, localMeeting.getTitle());
			localContentValues.put(MeetingDbTable.KEY_STARTDATE, localMeeting.getStartTime());
			localContentValues.put(MeetingDbTable.KEY_ENDDATE, localMeeting.getEndTime());
			localContentValues.put(MeetingDbTable.KEY_ACCESS_NUMBER,localMeeting.getAccessNumber());
			localContentValues.put(MeetingDbTable.KEY_SECURITY_CODE, localMeeting.getSecurityCode());
			localContentValues.put(MeetingDbTable.KEY_NOTES, localMeeting.getNote());
			localContentValues.put(MeetingDbTable.KEY_INVITEES, localMeeting.getInvitees());					
			localContentValues.put(MeetingDbTable.KEY_MEETING_DATE, localMeeting.getDate());
		}
		
		return localContentValues;
	}
}